@extends('adminApp')

@section('otherResource')

    <style>
        form{
            margin-top:3em;
        }
        .title{
            font-size: 1.6em;
        }
        .form-group{
            margin-bottom: 3em;
        }

        .msg{
            margin-bottom: -1.2em;
        }

    </style>

@endsection


@section('rightPanel')
    <div class="row">
        <h1 class="page-header col-md-11">新建活动</h1>
    </div>

    <div class="row msg">
        <div class="col-md-8">
            @if($errors->any())
                <ul class="alert alert-danger" style="list-style-type:none"><a href="#" class="close"
                                                                               data-dismiss="alert">
                        &times;
                    </a>
                    <?php $errorList=''; ?>
                    @foreach($errors->all() as $error)
                        <?php $errorList=$errorList.$error; ?>
                    @endforeach
                    <li >{{$errorList}}</li>
                </ul>
            @endif
            @if(\Illuminate\Support\Facades\Session::has('successMsg'))
                <ul class="alert alert-success" style="list-style-type:none"><a href="#" class="close"
                                                                                data-dismiss="alert">
                        &times;
                    </a>
                    <li>{{\Illuminate\Support\Facades\Session::get('successMsg')}}</li>
                </ul>
            @endif
        </div>
    </div>

    <form  method="post" action='/admin/activityManagement/create' class="form-horizontal">
        {!! csrf_field() !!}
        <div class="form-group">
            <label for="title" class="col-md-1 col-sm-2   title">标题</label>
            <div class="col-md-7 col-sm-6">
                <input type="text" class="form-control input-lg" name="title" id="title" placeholder="标题">
            </div>
            <div class="col-md-4"></div>
        </div>

        <div class="form-group">
            <label for="description" class="col-md-1  title">描述</label>
            <div class="col-md-7">
                <textarea class="form-control" rows="15" id="description" name="description" placeholder="具体描述" ></textarea>
            </div>
            <div class="col-md-4"></div>
        </div>

        <div class="form-group">
            <div class="col-md-6 ">
            </div>
            <div class="col-md-2 ">
                <button type="submit" class="btn btn-primary btn-lg  btn-block">发布</button>
            </div>
        </div>

    </form>


@endsection

@section('otherJs')

@endsection

